x86/MSI-X: cleanup
authorJan Beulich <jbeulich@suse.com>
Fri, 19 Jun 2015 08:58:45 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 Jun 2015 08:58:45 +0000 (10:58 +0200)
commit236e13ce60e1c0eb0535ad258e74a3789bc0d074
tree866e67c4056926042cc6cff966f11f8eb0355fb2
parentb7007bc6f9a45cef9262b1ec4280eb67140a5112
x86/MSI-X: cleanup

- __pci_enable_msix() now checks that an MSI-X capability was actually
  found
- pass "pos" to msix_capability_init() as both callers already know it
  (and hence there's no need to re-obtain it)
- call __pci_disable_msi{,x}() directly instead of via
  pci_disable_msi() from __pci_enable_msi{x,}() state validation paths
- use msix_control_reg() instead of open coding it
- log message adjustments
- coding style corrections

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/msi.c